const {MongoClient} = require("mongodb");
const url = 'mongodb://121.36.200.5:12021';
const client = new MongoClient(url);
const dbName = 'Student';
async function main() {
  await client.connect();
  console.log('Connected successfully to server');
  const db = client.db(dbName);
  const collection = db.collection('user');
  return collection;
}

module.exports= main;